package org.jeecg.modules.api.vo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class ParamBase {

    @ApiModelProperty(value = "当前页")
    @NotNull(message = "当前页不能为空")
    @Min(value = 1, message = "当前页必须大于等于1")
    private Integer pageNo = 1;

    @ApiModelProperty(value = "分页大小")
    @NotNull(message = "分页大小不能为空")
    @Min(value = 1, message = "分页大小必须大于等于1")
    private Integer pageSize = 10;
}
